package cn.wonderland.org.domain;

import cn.wonderland.base.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee extends BaseDomain {

    @NotBlank(message = "姓名不能为空")
    private String username;

    @NotBlank(message = "手机号不能为空")
    private String phone;

    @NotBlank(message = "邮箱不能为空")
    private String email;

    private String salt;

    private String password;

    private Integer age;

    private Integer state;

    private Long departmentId;

    private Long logininfoId;

    private Long shopId;
    private Long deptId;
    private String deptName;
    // 二次密码
    private String comfirmPassword;
    // 员工对应角色的集合
    private List<Long> roles;
}

